<!DOCTYPE html>
<%@ page language="java" pageEncoding="UTF-8"%>
<html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<head>
<c:set var="title" value="外卖中心" scope="request" />
<jsp:include page="/head.jsp" />
</head>

<body>
	<c:import url="/header.do?full=1" />
	<div class="col-md-2">
		<c:import url="/left-menu.do" />
	</div>
	<div class="col-md-10 news-add">
		<ol class="breadcrumb">
			<li><a href="user.html">外卖中心</a></li>
			<li class="active">外卖管理</li>
		</ol>

		<form class="form-inline form-search">
			<div class="form-group">
				<input name="username" class="form-control" type="text" placeholder="关键字">
			</div>
			<button class="btn btn-primary">
				<i class="fa fa-search"></i>
			</button>
		</form>
		<table class="table table-bordered text-center">
			<thead>
					<tr style="font-weight:bold" >
						<th class="text-center">#</th>
						<th class="text-center">用户名</th>
						<th class="text-center">评分</th>
                        <th class="text-center">描述</th>
                        <th class="text-center">时间</th>
					</tr>
				</thead>
			<tbody>
					<c:forEach var="list" items="${p.list }" varStatus="s">
					<tr>
						<td>${s.count }</td>
						<td>${list.commentUserName }</td>
						<td>${list.commentScore }</td>
						<td>${list.commentContent }</td>
						<td><fmt:formatDate value="${list.commentTime }" pattern="yyy-MM-dd HH:mm:ss"/></td>
					</tr>
				</c:forEach>
				</tbody>
			</tbody>
		</table>
			<c:if test="${not empty p }">
				<div class="text-center">
					<ul class="pagination">
						<li><a href="/food/comments/page-1.html" aria-label="Previous"><span
								aria-hidden="true">«</span></a></li>
						<c:forEach items="${p.navigatepageNums }" var="i">
							<li class="${i==p.pageNum?'active':'' }"><a href="/food/comments/page-${i}.html">${i }</a></li>
						</c:forEach>
						<li><a href="/food/comments/page-${p.pages}.html" aria-label="Next"><span
								aria-hidden="true">»</span></a></li>
					</ul>
				</div>
			</c:if>

	</div>
	<jsp:include page="/footer.jsp" />
	
</body>

</html>